import React from 'react'
import {Card} from 'antd'
import PieChart from '@/pages/Index/components/pieChart'
import { AnalysisData } from '@/pages/Index/data';

export default function PreRatio(props:AnalysisData) {
  const pieProps = {
    height: 440,
    data: props.saleTypeData || []
  };
  return (
    <div>
        <Card title="销售额类别占比">
          {
            pieProps.data.length>0 &&
            <PieChart {...pieProps}></PieChart>
          }
        </Card>
    </div>
  )
}
